package org.dtrd.modules.device.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.modules.device.entity.po.DtrdEntRdDevicePushContent;

/**
 * <p>
 * 智能设备推送记录
 * </p>
 *
 * @author xiao
 * @since 2022-01-12
 */
@Data
@ApiModel(value = "智能设备推送记录详情")
public class DevicePushContentDetail {

    private Integer dataId;


    @ApiModelProperty("消息ID")
    private String msgId;

    @ApiModelProperty("推送内容")
    private String pushContent;

    @ApiModelProperty("设备序列号")
    private String deviceSn;

    @ApiModelProperty("设备品牌  1小糖医  2 爱奥乐  3 微策")
    private Integer deviceBrand;

    @ApiModelProperty("设备种类  1 血糖仪 2 血压计")
    private Integer deviceCategory;

    public DevicePushContentDetail parseFromPo(DtrdEntRdDevicePushContent po) {
        dataId = po.getDataId();
        pushContent = po.getPushContent();
        deviceSn = po.getDeviceSn();
        deviceCategory = po.getDeviceCategory();
        deviceBrand = po.getDeviceBrand();
        return this;
    }
}
